package com.ruoyi.btlfbreed.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备维修记录对象 tb_equipment_records
 * 
 * @author codeman
 * @date 2024-05-03
 */
public class TbEquipmentRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID（主键，自增） */
    private Long recordId;

    /** 设备ID（外键，关联tb_equipment表的ID） */
    @Excel(name = "设备ID", readConverterExp = "外=键，关联tb_equipment表的ID")
    private Long equipmentId;

    /** 维护状态 */
    @Excel(name = "维护状态")
    private String maintenanceStatus;

    /** 维护日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维护日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintenanceDate;

    /** 维护情况（描述） */
    @Excel(name = "维护情况", readConverterExp = "描=述")
    private String maintenanceDescription;

    /** 维护费用（单位：元） */
    @Excel(name = "维护费用", readConverterExp = "单=位：元")
    private BigDecimal maintenanceCost;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setMaintenanceStatus(String maintenanceStatus) 
    {
        this.maintenanceStatus = maintenanceStatus;
    }

    public String getMaintenanceStatus() 
    {
        return maintenanceStatus;
    }
    public void setMaintenanceDate(Date maintenanceDate) 
    {
        this.maintenanceDate = maintenanceDate;
    }

    public Date getMaintenanceDate() 
    {
        return maintenanceDate;
    }
    public void setMaintenanceDescription(String maintenanceDescription) 
    {
        this.maintenanceDescription = maintenanceDescription;
    }

    public String getMaintenanceDescription() 
    {
        return maintenanceDescription;
    }
    public void setMaintenanceCost(BigDecimal maintenanceCost) 
    {
        this.maintenanceCost = maintenanceCost;
    }

    public BigDecimal getMaintenanceCost() 
    {
        return maintenanceCost;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("equipmentId", getEquipmentId())
            .append("maintenanceStatus", getMaintenanceStatus())
            .append("maintenanceDate", getMaintenanceDate())
            .append("maintenanceDescription", getMaintenanceDescription())
            .append("maintenanceCost", getMaintenanceCost())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
